var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/nd-h5');

var db = mongoose.connection;
db.on('open', ()=>{
	console.log('success');
});
db.on('error', (err)=>{
	console.log('failed' + err);
});
module.exports = mongoose;